package pojo;

import java.sql.Date;
import java.time.LocalDateTime;

/**
 *
 * @author d11yu
 */
public class Task {
    private Integer id;
    private String taskname;

    /**
     * 0：未完成，
     * 1：已完成
     */
    private Integer status;
    private LocalDateTime timeUpdate;
    private LocalDateTime timeCreate;
    private Integer userId;

    public Task(Integer id, String taskname, Integer status, LocalDateTime timeUpdate, LocalDateTime timeCreate, Integer userId) {
        this.id = id;
        this.taskname = taskname;
        this.status = status;
        this.timeUpdate = timeUpdate;
        this.timeCreate = timeCreate;
        this.userId = userId;
    }

    public Task() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTaskname() {
        return taskname;
    }

    public void setTaskname(String taskname) {
        this.taskname = taskname;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public LocalDateTime getTimeUpdate() {
        return timeUpdate;
    }

    public void setTimeUpdate(LocalDateTime timeUpdate) {
        this.timeUpdate = timeUpdate;
    }

    public LocalDateTime getTimeCreate() {
        return timeCreate;
    }

    public void setTimeCreate(LocalDateTime timeCreate) {
        this.timeCreate = timeCreate;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Task{" +
                "id=" + id +
                ", taskname='" + taskname + '\'' +
                ", status=" + status +
                ", timeUpdate=" + timeUpdate +
                ", timeCreate=" + timeCreate +
                ", userId=" + userId +
                '}';
    }
}
